Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "tpl-stops-by-route">

provide a list of the public transport stops available for a given route.

Inputs

A JSON with these parameters:
route string
URI of the route whose bus stops are to be retrieved

Outputs

  1. ServiceUri Array
    Returns an array containing the servicesUri of each service found
  2. Stop Information
    It provides an JSON Object with line number (aka line short name) and line name (aka line long name) and a GeoJSON FeatureCollection with the stops. The stops are provided in stop order, from the first to the last

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.